package com.durian.job.task;

import com.durian.common.redis.service.RedisService;
import com.durian.system.api.RemoteRoleService;
import com.durian.system.api.RemoteUserService;
import com.durian.system.api.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("timedTask")
public class TimedTask {

    @Autowired
    private RemoteRoleService roleService;
    @Autowired
    private RemoteUserService remoteUserService;
    @Autowired
    private RedisService redisService;

    public void task(){
        String s = roleService.timedTask();
        System.err.println(s);
    }

    public void selectUser(){
        List<SysUser> sysUsers = remoteUserService.selectUserList();
    }
    public void getRedis(){
        List<Object> userlist = redisService.getCacheList("USERLIST");
    }
}
